﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace NCS.DeviceManager.Models.Entities
{
    [Table("tbl_email")]
    public class EmailEntity : BaseEntity
    {
        /// <summary>
        /// 邮件主题
        /// </summary>
        [Required, MaxLength(255)]
        public string Subject { get; set; }
        /// <summary>
        /// 邮件内容
        /// </summary>
        [Required, MaxLength(4000)]
        public string Body { get; set; }
        /// <summary>
        /// 邮件发出者
        /// </summary>
        [MaxLength(255)]
        public string From { get; set; }
        /// <summary>
        /// 邮件发送者
        /// </summary>
        [MaxLength(255)]
        public string To { get; set; }
        /// <summary>
        /// 抄送人
        /// </summary>
        [MaxLength(255)] public string Cc { get; set; }
        [MaxLength(255)] public string Bcc { get; set; }
        public int SignatureId { get; set; }
    }
}
